/**
 *  (c)
 *
 *
 *
 *
 */

package com.nn.smart.bus.controller;

import com.nn.smart.bus.commons.tools.security.bo.ResourceBO;
import com.nn.smart.bus.service.SysResourceService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 资源管理
 *
 * @author nanning
 * @since 1.0.0
 */
@RestController
@RequestMapping("resource")
@Api(tags="资源管理")
public class SysResourceController {
    @Autowired
    private SysResourceService sysResourceService;

    /**
     * 获取所有资源列表
     */
    @GetMapping("list")
    public List<ResourceBO> list(){
        return sysResourceService.getResourceList();
    }
}
